Running the Mediator API Sample Projects
This page last changed on Jun 23, 2008.
edocs Home > BEA AquaLogic Data Services Platform 3.0/3.2 Documentation > ALDSP 3.2 New Features Documentation How To Run the Mediator API Sample ProjectsThis topic describes how to run the Mediator API sample projects. Topic MapAdvanced API Samples - Mediator, Web Services, and DSP Controls Running the Standalone Samples Using the Custom Run ConfigurationYou can run the following standalone Mediator API sample projects using a custom configuration:
You can run the DSPClientSamplesDynamic1 sample using the steps shown above. Selecting the Run ConfigurationThe sample project includes an optional parameter enabling you to choose the following client types:
The parameter can be specified in the Arguments tab as a program argument such as: webservice Specifying an ArgumentThe results appear in the Console Window. Console After Running Static Mediator Sample with webservice ParameterRunning the Sample Controls Using "Run on Server"You can run the Mediator API sample controls using the "Run on Server" option.
To run the sample projects:
Selecting the ServerSelect the server and click Next. Adding the ProjectAdd the required project, and click Finish. You can specify an optional parameter to use the Mediator API or Web Services Mediator API. Using the Advanced APISample Projects with ALDSP 3.0The samples are tested with ALDSP 3.2 and 3.01. If you are using ALDSP 3.0, you need to call the getContextClassLoader() method before accessing the DataAccessService. Specifically, when using the Java or DSP Control Mediator API, call the following method before accessing the DataAccessService: com.bea.dsp.das.HelperContextCache.setClassLoader("RetailDataspace", Thread.currentThread.getContextClassLoader(); Similarly, when using the Web Services Mediator API, call the following method before accessing the DataAccessService: com.bea.dsp.das.HelperContextCache.setClassLoader( "http://localhost:7001/RetailDataspace/RetailApplication/CustomerManagement/ProfileService.ws?WSDL", Thread.currentThread.getContextClassLoader()); Related TopicsHow Tos
Reference |
Document generated by Confluence on Jul 03, 2008 12:11 |